#pragma once
#include <fstream>
#include <sstream>
#include <string>
using namespace std;

string readfile(const string& path) {
    ifstream file(path);
    if (!file.is_open()) {
        throw runtime_error("file to open file " + path);
    }
    stringstream ss;
    string line;
    while (getline(file, line)) {
        ss << line;
    };
    file.close();
    return ss.str();
}
